package com.hb.impl;

import com.hb.interfaces.Knight;
import com.hb.interfaces.Quest;

public class DamselRescuingKnight implements Knight {
    private RescueDamselQuest quest;

    // 没有应用 DI 造成耦合度非常高，也不利于单元测试
    public DamselRescuingKnight() {
        this.quest = new RescueDamselQuest();
    }

    @Override
    public void embarkOnQuest() {
        quest.embark();
    }
}
